A Computational Formalization for Partial Evaluation

نویسندگان

  • John Hatcliff
  • Olivier Danvy
چکیده

We formalize a partial evaluator for Eugenio Moggi’s computational metalanguage. This formalization gives an evaluation-order independent view of binding-time analysis and program specialization, including a proper treatment of call unfolding, and enables us to express the essence of “control-based binding-time improvements” for let expressions. Specifically, we prove that the binding-time improvements given by “continuation-based specialization” can be expressed in the metalanguage via monadic laws. ∗A shorter version of this paper (essentially, a version without the proofs of Appendix B) will appear in a special issue of Mathematical Structures in Computer Science devoted to the 1995 Workshop on Logic, Domains, and Programming Languages (LDPL’95) at which this work was presented. The essential results of this work obtained during the fall of 1994 and refined throughout 1995 and 1996 while the first author was at the University of Copenhagen. †Basic Research in Computer Science, Centre of the Danish National Research Foundation. ‡Department of Computer Science 219 Mathematical Sciences, Stillwater, OK 74078-1053, USA. E-mail: [email protected] §Department of Computer Science Ny Munkegade, Building 540, DK-8000 Aarhus C, Denmark. E-mail: [email protected]

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Communication Algebras

We introduce a semantic framework which generalises algebraic speciications by equipping algebras with descriptions of evaluation strategies. The semantic objects are not merely algebras , but algebras with associated data dependencies. The latter provide separate means for modeling computational concerns along with the functional speciications usually captured by an algebra. The formalization ...

متن کامل

Computational technique of linear partial differential equations by reduced differential transform ‎method

This paper presents a class of theoretical and iterative method for linear partial differential equations. An algorithm and analytical solution with a initial condition is obtained using the reduced differential transform method. In this technique, the solution is calculated in the form of a series with easily computable components. There test modeling problems from mathematical mechanic, physi...

متن کامل

FUZZY FRACTIONAL PARTIAL DIFFERENTIAL EQUATIONS IN PARTIALLY ORDERED METRIC SPACES

In this paper, we consider fuzzy fractional partial differential equations under Caputo generalized Hukuhara differentiability. Some new results on the existence and uniqueness of two types of fuzzy solutions are studied via  weakly contractive mapping in the partially ordered metric space. Some application examples are presented to illustrate our main results.

متن کامل

Self-interpreter for Prolog by Aseel Alkhelaiwi a Thesis Submitted in Partial Fulfillment of the Requirements for the Degree of Master of Science in Computer Science University of Rhode Island

The semantics of Prolog programs is usually given in terms of model theoretic semantics. However, this does not adequately characterize the computational behavior of Prolog programs. Prolog implementations typically use a depth-first, left-to-right evaluation strategy based on the textual order of clauses and literals in a program. In this paper we introduce a self-interpreter for Prolog, which...

متن کامل

The Addition of Bounded Quantification and Partial Functions to a Computational Logic and Its Theorem Prover 1. Introduction (for X in L Collect (times 2 X)) and (for X in L Collect (add1 X))

We describe an extension to our quantifier-free computational logic to provide the expressive power and convenience of bounded quantifiers and partial functions. By quantifier we mean a formal construct which introduces a bound or indicial variable whose scope is some subexpression of the quantifier expression. A familiar quantifier is the Σ operator which sums the values of an expression over ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Mathematical Structures in Computer Science

دوره 7  شماره 

صفحات  -

تاریخ انتشار 1997